﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SharingCenter.Web.Classes;

namespace SharingCenter.Web.Mod.Groups
{
    public partial class Edit : GroupsPageBase
    {

        protected void Page_Init(object sender, EventArgs e)
        {
            FormView1.ItemUpdated += new FormViewUpdatedEventHandler(FormView1_ItemUpdated);
        }

        void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
        {
            if (e.Exception == null)
            {
                SetTopMostMessage("帖子内容已更新", true);
                string url = string.Format("Posts.aspx?t={0}&id={1}", Request.QueryString["t"], Request.QueryString["id"]);
                Response.Redirect(url);
            }
        }
    }
}
